# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=cdrdao
pkgver=1.2.4
pkgrel=0
pkgdesc="record audio/data CD-Rs in disk-at-once mode"
url="http://cdrdao.sourceforge.net/index.html"
arch="all"
license="GPL-2.0-only"
makedepends="lame libmad libvorbis libao linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/cdrdao/cdrdao-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-xdao \
		--with-lame \
		--with-ogg-support \
		--with-mp3-support
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="41f20275ca44ec9003d0e3ed280cc98012353005cda6f544ebfa44f3f79f991845c0ef17af74db9456f1bacc342a7fd48c9e942d757927a4a9ff91808f7bbb09  cdrdao-1.2.4.tar.bz2"
